FROM node:16

WORKDIR /app

COPY package*.json ./
RUN npm install

COPY . .

COPY run.sh /opt/application/run.sh
RUN chmod +x /opt/application/run.sh

EXPOSE 8000

CMD ["npm", "start"]